package com.glory.hikvisionmobile.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.hikvisionmobile.R;
import com.glory.hikvisionmobile.base.App;
import com.glory.hikvisionmobile.bean.TrackOut.XSortingAndBoundsBean;

import java.sql.RowId;
import java.util.List;

public class DieBondListAdapter extends BaseQuickAdapter<XSortingAndBoundsBean, BaseViewHolder> {

    public DieBondListAdapter(@Nullable List<XSortingAndBoundsBean> data) {
        super(R.layout.adapter_sorting_list,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, XSortingAndBoundsBean item) {

        helper.setText(R.id.tvLot,item.getCarrierId());
        helper.setText(R.id.tvWaferID,item.getCarrierSeq());
        helper.setText(R.id.tvX,item.getTubeShellId());
        helper.setTextColor(R.id.tvX, App.app.getResources().getColor(R.color.free_ui_glory_theme_color));
        helper.setText(R.id.tvY,item.getReleaseCarrierId());
        helper.setText(R.id.tvCleanCarrier,item.getReleaseCarrierSeq());
        helper.setGone(R.id.tvPositions,false);

    }


}
